<?php

namespace Modules\Common;

class StatusData
{
    const SUCCESS = 1;
    const INVALID = -1;
    const DB_SAVE_ERROR = -2; //数据库保持错误
    const DB_READ_ERROR = -3; //数据库读取失败
    const CACHE_SAVE_ERROR = -4; //緩存保存错误
    const CACHE_READ_ERROR = -5; //缓存读取错误


    const FILE_SAVE_ERROR = -6; //文件保存錯誤
    const LOGIN_ERROR = -7; //登录错误
    const NOT_EXISTS = -8; //不存在
    const JSON_PARSE_FAIL = -9;//json不对
    const TYPE_ERROR = -10; //类型错误
    const NUMBER_MATCH_ERROR = -11;
    const EMPTY_PARAMS = -12;//空参数
    const DATA_EXISTS = -13;//数据存在
    const AUTH_ERROR = -14;//授权错误

    const OTHER_LOGIN = -16;//
    const VERSION_INVALID = -17;//版本无效

    const CURL_ERROR = -18;//curl错误

    const RECORD_NOT_FOUND = -19; // 记录未找到
    const DELETE_FAILED = -20; // 删除失败
    const ADD_FAILED = -21; // 添加记录失败
    const UPDATE_FAILED = -22; // 添加记录失败

    const PARAM_INVALID = -995; // 参数无效
    const ACCESS_TOKEN_TIMEOUT = -996;//token超时
    const SESSION_TIMEOUT = -997;
    const UNKNOWN = -998;
    const EXCEPTION = -999;

}
